from setuptools.command.build_ext import if_dl

book = {'mayun':'13309283335',
'zhaolong':'18989227822',
'zhangmin':'13382398921',
'Gorge':'19833824743',
'Jordan':'18807317878',
'Curry':'15093488129',
'Wade':'19282937665'}

# 现在输入人名，查询他的号码，如果人名存在，则输出电话号码，如果该人不存在，返回"not found"

while True:
    name = input('请输入人名,q退出:')
    if name == 'q':
        break

    if name in book:
        print(book[name])

    else:
        print('not found')


#2.已知列表numlist = [23,5,56,7,78,89,12,45,6,8,89,100,99],生成一个字典，将大于66的数字保存在字典的第一个key中，将小于等于66的数字保存在字典的第二个key中
numlist = [23,5,56,7,78,89,12,45,6,8,89,100,99]
numlist1 = [n for n in numlist if n > 66]
numlist2 = [n for n in numlist if n < 66]
print(numlist1)
print(numlist2)
dict ={'大于66':numlist1,'小于66':numlist2}
print(dict)
